/**
 * 储存/获取token
 */
const KEY = 'USER_TOKEN'

export function setToken(token: string): void {
    localStorage.setItem(KEY, token)

}

export function getToken(): string {
    return localStorage.getItem(KEY) || ''
}

export function removeToken(): void {
    localStorage.removeItem(KEY)
}